Skip to content

Add init command and templates to @lithium-ai/kit (#61) - #68

Merged
0xJaksun merged 1 commit into
masterfrom
61-kit-init-command
Jun 1, 2026
Merged

Add init command and templates to @lithium-ai/kit (#61)#68
0xJaksun merged 1 commit into
masterfrom
61-kit-init-command

Conversation

@0xJaksun

@0xJaksun 0xJaksun commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add init command: scaffolds Lithium into existing projects
  • Interactive adapter prompt via @clack/prompts (postgres or drizzle)
  • Flag support: --adapter postgres or --adapter drizzle, validated with Zod
  • Scaffolds lithium/server.ts, schema file, and lithium.config.json
  • Adds correct deps to existing package.json
  • Template files use .tmpl extension to avoid IDE type-checking
  • Data-driven config via ADAPTER_CONFIG record
  • Updated index.ts to route both init and serve commands

@0xJaksun 0xJaksun linked an issue Jun 1, 2026 that may be closed by this pull request
@0xJaksun
0xJaksun merged commit 8a8a34c into master Jun 1, 2026
5 checks passed
@0xJaksun
0xJaksun deleted the 61-kit-init-command branch June 1, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kit: init command

1 participant